/*******************************************************************
 * Author: Bing Hsu                                                *
 * Date: 1st, Dec, 2012                                            *
 * Edition: 0.1                                                    *
 * Email: hello@antinucleon.com                                    *
 * *****************************************************************/

#ifndef SVM_DATA_HPP
#define SVM_DATA_HPP
#include <vector>
#include <map>
#include <sstream>
#include "base.hpp"

typedef struct svm_dataset {
    ulong max_feature;
    ulong max_class_type;
    std::vector<std::map<ulong, double>> data;
    std::vector<int> target;//Currently not used for pre-training
} svm_dataset;

int load_svm_data(char*, svm_dataset*);
int write_svm_data(char*, svm_dataset*);


#endif // SVM_DATA_HPP
